package principle.isp.before;

/**
 * @version v1.0
 * @ClassName: Client
 * @Description: TODO(一句话描述该类的功能)
 * @Author: 黑马程序员
 */
public class Client {
    public static void main(String[] args) {
        SafetyDoor door = new HeimaSafetyDoor();
        door.antiTheft();
        door.fireProof();
        door.waterProof();

        //如果我们换一个安全门品牌，但是没有防火功能。那么就不能用SafetyDoor引用来接受OtherDoor对象
//        SafetyDoor door2 = new OtherDoor();
        OtherDoor door2 = new OtherDoor();
        door2.antiTheft();
        door2.waterProof();

    }
}
